home *** CD-ROM | disk | FTP | other *** search
- /* This file pre-processed with 'sed -f etc/FixGTX_temp_c.sed <file>' */
- /* This file contains empty template routines that
- * the IDCMP handler will call uppon. Fill out these
- * routines with your code or use them as a reference
- * to create your program.
- */
- #include <intuition/intuition.h>
- #include <functions.h>
-
- #include "ups.h"
- #include "main.h"
- #include "database.h"
-
- #include "functions.h"
-
- int
- Gadget60Clicked (struct IntuiMessage *msg)
- {
- /* routine when gadget "" is clicked. */
- return (HandleListViewGadget (msg));
-
- }
-
-
- int
- Project0OpenWindow (void)
- {
- if (Project0Wnd == NULL)
- {
- if (OpenProject0Window () == 0)
- {
- intuisigflag = (1 << Project0Wnd->UserPort->mp_SigBit);
-
- GT_SetGadgetAttrs (Project0Gadgets[6], Project0Wnd, NULL, GTLV_Labels, &record_list, TAG_DONE);
-
- GT_SetGadgetAttrs (Project0Gadgets[6], Project0Wnd, NULL, GTLV_Labels, &record_list, GTLV_Top, 0, TAG_DONE);
-
- DisplayRecord (0);
-
- }
- }
- }
-
-
- int
- Project0CloseWindow (struct IntuiMessage *msg)
- {
- /* routine for "IDCMP_CLOSEWINDOW". */
-
- if (Project0Wnd != NULL)
- {
- GT_SetGadgetAttrs (Project0Gadgets[6], Project0Wnd, NULL, GTLV_Labels, ~0, TAG_DONE);
-
- {
- struct IntuiMessage *m;
-
- while (m = GT_GetIMsg (Project0Wnd->UserPort))
- GT_ReplyIMsg (m);
- }
-
- CloseProject0Window ();
-
- intuisigflag = 0;
- }
-
- return (1);
- }
-